package com.bawei.es.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * @author : zhangyu
 * @date 2023/11/13 17:06
 */
@Data
@ApiModel("索引信息")
public class IndexEntry {


    @ApiModelProperty(value = "索引名称",required = true)
    @NotNull(message = "索引名称不能为空")
    private String indexName;

    @ApiModelProperty(value = "索引mapping",required = false)
    @NotNull(message = "索引mapping不能为空")
    private Map<String ,Object> mapping;

    @ApiModelProperty(value = "默认参数",required = false)
    @NotNull(message = "默认参数不能为空")
    private Map<String,Object> settings;



}
